Product Features
DC7-40V wide voltage power supply;
RS485 communication isolation interface;
Support standard Modbus RTU protocol;
2-channel 4-20mA/0-10V analog output.
PRODUCT FUNCTION
Temperature and humidity collection;
Supporting baud rates: 2400480096001920038400.
PRODUCT MODEL
Parameters
pinouts
Size
Wiring Instructions
Among them, ℃ represents the temperature meter and RH represents the humidity meter. Connect them according to the pin instructions.
Test software description
http://www.juyingele.com.cn/software/software/ Juying Soar DAM Debugging Software User Tutorial. rar (software video tutorial link)
Software functions:
Analog reading
Debugging information query
Setting of offset address
Baud rate setting
Software usage and settings
Connected Device
http://www.juyingele.com.cn/software/software/Juying Soaring DAM Debugging Software User Tutorial. rar(Software video tutorial link)
Open the "Juying Soaring DAM Series Configuration Software"; Serial port settings bar: Select the corresponding COM port of your computer for the serial port, choose the default baud rate of the device (9600) for the baud rate (before setting the baud rate yourself), fill in the device address as "254" (254 is the broadcast address of the device), select the corresponding device model, set the four parameters of the above devices, and click to open the serial port to open the debugging information.
Method for changing device address
Introduction to device address
Device address=offset address.
Reading device address
Click on 'Read Address' at the top of the software
Setting and Reading of Offset Address
Click on "Read" or "Set" after the offset address below the software to read or set the offset address of the device.
Reading and Setting of Baud Rate
Click on "Read" and "Set" in the baud rate settings bar below to read and set the baud rate and address respectively. After the operation, you need to restart the device and modify the computer serial port settings.
Analog output settings
Modbus Register Description
Coil register address table:
remarks:
① Modbus device commands support the following Modbus addresses:
00001 to 09999 are discrete outputs (coils)
10001 to 19999 are discrete inputs (contacts)
20001 to 29999 are hold registers
30001 to 39999 are input registers (usually analog inputs) 40001 to 49999 are holding registers (usually storing device configuration information)
Using a 5-digit code format, the first character determines the register type, and the remaining 4 characters represent the address. Address 1 starts from 0, such as 00001 corresponding to 0000.
② Table of baud rate values correspondence
numerical value | Baud rate |
0 | 38400 |
1 | 2400 |
2 | 4800 |
3 | 9600 |
4 | 19200 |
5 | 38400 |
6 | 115200 |
Example of Communication Instructions
This product supports standard Modbus instructions. For detailed instruction generation and parsing methods, please refer to the register table in this article and consult the "MODBUS Protocol Chinese Version". reference resources: http://pan.baidu.com/s/1hqsuZNu
Application example and explanation: In addition to the dip switch address, the default broadcast address for this device is 254. When there is only one device on the bus, there is no need to worry about the dip switch address. Simply use the 254 address. When there are multiple devices on the bus, select different addresses through the dip switch and send control instructions based on address differentiation.
Note: The RS232 bus is a 1-on-1 bus, which means there can only be two devices on the bus, such as a computer and a relay board. Only the 485 bus can mount multiple devices.
Instruction generation instructions: For instructions not listed in the table below, users can generate them themselves according to the Modbus protocol. For reading and writing relay coils, it is actually reading and writing coil registers in the Modbus register. The address of the relay register has been explained in the previous text, and users only need to generate read and write instructions for register operations. For example, reading or writing the status of relay 1 is actually a read/write operation on the coil register 0001 corresponding to relay 1.
Detailed explanation:
1: Analog quantity query
Check temperature
FE040000000125C5
field | meaning | notes |
FE | Device Address | |
04 | 04 instruction | Query input register instruction |
00 00 | start address | The first analog register address to be queried |
00 01 | Query quantity | The number of analog quantities to be queried |
25 C5 | CRC16 |
Simulated return information:
FE 04 02 00 00 AD 24
field | meaning | notes |
FE | Equipment address | |
04 | 04 instruction | Return instruction: If the query is incorrect, return 0x82 |
02 | Byte count | Return all bytes of status information. 1+(n-1)/8 |
00(TH)00(TL) | Querying AD characters | TH is the high temperature byte, TL is the low temperature byte |
AD 24 | CRC16 |
Common problems and solutions
1. After the relay board is powered on, communication cannot be established using the 232 interface and cannot be controlled
Firstly, test whether different baud rates can be controlled. Pay attention to the A+, B-line, and shielded line of the 485 interface. Shielded line is not necessary, but it must be connected in cases of high communication error rate, even if the distance is very close.
On the 2.485 bus, with more than one device mounted, I sent the relay 1 draw sum with broadcast address 255, but not all modules have relay 1 draw sums.
When there is only one device on the bus, the broadcast address can be used. If there are more than one device, please use a dip switch to distinguish the address for control. Otherwise, the module may not execute instructions correctly due to asynchronous judgment of communication data.